package 状态机.请假demo.entity;


import 状态机.请假demo.event.Event;
import 状态机.请假demo.leavepermit.LeavePermitType;
import 状态机.请假demo.status.Status;

/**
 * 假单实体类，假单记录着：
 * 1. 请假类型
 * 2. 是谁请假的
 * 3. 假单当前的处理流程状态（status）
 * 4. 具体处理者在当前状态上给此假单的审批意见（event）
 */
public class LeavePermit {
    private Status status;
    private LeavePermitType leavePermitType;
    private Event event;
    private String user;

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    public LeavePermitType getLeavePermitType() {
        return leavePermitType;
    }

    public void setLeavePermitType(LeavePermitType leavePermitType) {
        this.leavePermitType = leavePermitType;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public Event getEvent() {
        return event;
    }

    public void setEvent(Event event) {
        this.event = event;
    }
}
